/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.openbravo.bean.shard;

import cn.ekuma.data.dao.bean.CreateDateAble;
import cn.ekuma.data.dao.bean.I_AutoGeneratorStringKey;
import cn.ekuma.data.dao.bean.I_Category;
import cn.ekuma.data.dao.bean.I_ModifiedLogBean;

import java.util.Date;

/**
 *
 * @author Administrator
 */
public abstract class AbstractCategory implements I_ModifiedLogBean<String>,I_Category,I_AutoGeneratorStringKey{

    protected boolean m_bHot;
    protected String m_sID;
    protected String m_sName;
    protected String m_sParentID;
    private Date lastModified;
    protected Date createDate;

    public AbstractCategory() {
    	m_bHot=false;
	}

	public AbstractCategory( String m_sID, String m_sName, String m_sParentID,boolean m_bHot) {
        this.m_bHot = m_bHot;
        this.m_sID = m_sID;
        this.m_sName = m_sName;
        this.m_sParentID = m_sParentID;
    }

    public String getID() {
        return m_sID;
    }

    public String getKey() {
        return m_sID;
    }

    public String getM_sParentID() {
        return m_sParentID;
    }

    public String getName() {
        return m_sName;
    }

    public boolean isHot() {
        return m_bHot;
    }

    public void setHot(boolean m_bHot) {
        this.m_bHot = m_bHot;
    }

    public void setID(String sID) {
        m_sID = sID;
    }

    public void setM_sParentID(String m_sParentID) {
        this.m_sParentID = m_sParentID;
    }

    public void setName(String sName) {
        m_sName = sName;
    }

    @Override
    public String toString() {
        return m_sName;
    }

    public void setKey(String key) {
        m_sID=key;
    }

    public Date getLastModified() {
        return lastModified;
    }

    public void setLastModified(Date lastModified) {
        this.lastModified = lastModified;
    }

	@Override
	public Date getCreateDate() {
		return this.createDate;
	}

	@Override
	public void setCreateDate(Date adate) {
		this.createDate=adate;
	}
}
